package com.fessc.develop.mapper;

import com.fessc.develop.entity.dbvo.TPayment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

@Mapper
public interface TPaymentMapper extends BaseMapper<TPayment> {

    List<TPayment> getSettleTradePaymentList(@Param("orderno") String orderno);

    boolean updatePaymentBatchNoById(@Param("tPaymentList") List<TPayment> tPaymentList);

    boolean updateRefundBatchNoById(@Param("tPaymentList") List<TPayment> tPaymentList);

    boolean updatePrePaymentStatusByOrderNo(@Param("tPaymentList") List<TPayment> tPaymentList);

    boolean updatePrePaymentRefundStatusByOrderNo(@Param("tPaymentList") List<TPayment> tPaymentList);

}
